import http from '@/utils/https'
// 商品详情
export const getGoods = (id) => {
  return http({
    url: '/goods?id=' + id
  })
}

// 同类推荐(也支持猜你喜欢)
export const getGoodsRelevant = (id, limit = 4) => {
  return http({
    url: '/goods/relevant',
    data: {
      id,
      limit
    }
  })
}